import { CommonModule } from '@angular/common';
import { Component } from '@angular/core';
import { NzButtonModule } from 'ng-zorro-antd/button';
import { NzDividerModule } from 'ng-zorro-antd/divider';
import { NzTableModule } from 'ng-zorro-antd/table';
interface Person {
  key: string;
  name: string;
  age: number;
  address: string;
}

const people: Person[] = [
  {
    key: '1',
    name: 'John Brown',
    age: 32,
    address: 'New York No. 1 Lake Park',
  },
  {
    key: '2',
    name: 'Jim Green',
    age: 42,
    address: 'London No. 1 Lake Park',
  },
  {
    key: '3',
    name: 'Joe Black',
    age: 32,
    address: 'Sidney No. 1 Lake Park',
  },
];

@Component({
  selector: 'app-table-basic',
  standalone: true,
  imports: [NzTableModule, NzDividerModule, CommonModule, NzButtonModule],
  templateUrl: './table-basic.component.html',
  styleUrl: './table-basic.component.less',
})
export class TableBasicComponent {
  listOfData = people;
}
